package com.zhgxi.zf.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.zhgxi.zf.entity.Report;
import com.zhgxi.zf.entity.WholeReport;
import com.zhgxi.zf.service.EventService;

@Controller("ReportAction")
public class ReportAction {

	@Resource
	private EventService eventService;

	public List<Report> report() {
		return eventService.report();
	}

	public List<Report> reportByDMY(String dmy) {
		return eventService.reportByDMY(dmy);
	}

	public List<Report> reportByDD(String start, String end) {
		return eventService.reportByDD(start, end);
	}

	public List<WholeReport> countEventByY(String y) {
		return eventService.countEventByY(y);
	}

	public List<WholeReport> reportByYArea(String y) {
		return eventService.reportByYArea(y);
	}

	public int countPass(int iserge) {
		return eventService.countPass(iserge);
	}

}
